package edu.sctu.zcy.month201506.day20150601;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * Created by user24 on 2015/6/5.
 */
public class MainDate {

    public static void main(String[] args) {

        Calendar calendar1 = Calendar.getInstance();

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");

        calendar1.set(2015, 05, 04, 11, 23);
        System.out.println(simpleDateFormat.format(calendar1.getTime()));
        DateUtil.getDateUtil().getTime(calendar1);
    }
}
